﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using SingleUserMall.Authorization.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Orders.Form
{
    [AutoMapTo(typeof(UserAddress))]
    public class UserAddressForm : EntityDto<long>
    {
        /// <summary>
        /// 收货人
        /// </summary>
        [Required,StringLength(20)]
        public string Receiver { get; set; }
        /// <summary>
        /// 收货人电话
        /// </summary>
        [Required, StringLength(20)]
        public string ReceiverPhone { get; set; }
        /// <summary>
        /// 收货人地址
        /// </summary>
        [StringLength(100)]
        public string ReceiverAddress { get; set; }

        /// <summary>
        /// 收货人详细地址
        /// </summary>
        public string ReceiverFullAddress { get; set; }
        /// <summary>
        /// 邮政编码
        /// </summary>
        [StringLength(10)]
        public string PostalCode { get; set; }
        /// <summary>
        /// 是否是朋友地址
        /// </summary>
        public bool IsFriendAddress { get; set; }
    }
}
